package day010.abstr;

public abstract class Animal {
    private String bread;
    private String color;

    public Animal(){}

    public Animal(String bread,String color){
        this.bread=bread;
        this.color=color;
    }

    public String getBread() {
        return bread;
    }

    public void setBread(String bread) {
        this.bread = bread;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public abstract void eat();

    public void drink(){
        System.out.println("喝水...");
    }
}
